import request from '@/utils/request'

// 查询货品配送列表
export function listDeliveryDetail(query) {
  return request({
    url: '/storage/deliveryDetail/list',
    method: 'get',
    params: query
  })
}

// 查询货品配送详细
export function getDeliveryDetail(deliveryDetailId) {
  return request({
    url: '/storage/deliveryDetail/' + deliveryDetailId,
    method: 'get'
  })
}

// 新增货品配送
export function addDeliveryDetail(data) {
  return request({
    url: '/storage/deliveryDetail',
    method: 'post',
    data: data
  })
}

// 修改货品配送
export function updateDeliveryDetail(data) {
  return request({
    url: '/storage/deliveryDetail',
    method: 'put',
    data: data
  })
}

// 处理到货
export function arrDeliveryDetail(deliveryDetailId) {
  return request({
    url: '/storage/deliveryDetail/' + deliveryDetailId,
    method: 'delete'
  })
}
